-
Notifications
You must be signed in to change notification settings - Fork 846
opentelemetry-instrumentation-aiohttp-client: add ability to capture custom headers #3988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opentelemetry-instrumentation-aiohttp-client: add ability to capture custom headers #3988
Conversation
|
nitpick: might change get_custom_header_attributes to get_sanatized_custom_header_attributes, but otherwise looks good to me! |
9870a3d to
99f9f39
Compare
I was considering adding even more context to this function name e.g. making it |
...-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py
Outdated
Show resolved
Hide resolved
…rc/opentelemetry/instrumentation/aiohttp_client/__init__.py
...-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py
Outdated
Show resolved
Hide resolved
…rc/opentelemetry/instrumentation/aiohttp_client/__init__.py
…custom headers (open-telemetry#3988) * opentelemetry-instrumentation-aiohttp-client: add support to capture custom headers * update unit tests * update CHANGELOG.md * add 'get_custom_header_attributes' helper to opentelemetry-util-http * fix formatting issues * fix CHANGELOG.md format * Update instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py * Update instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Description
This PR adds the ability to capture custom client headers in the
opentelemetry-instrumentation-aiohttp-clientlibrary. These changes implement #3962 for theaiohttpHTTP client library.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Basic set of unit tests have been added.
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.